home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 17 / CU Amiga Magazine's Super CD-ROM 17 (1997)(EMAP Images)(GB)[!][issue 1997-12].iso / CUCD / Games / Team17-HDinst / AlienBreed2AGA / Install-AB2 < prev    next >
Text File  |  1997-09-19  |  2KB  |  103 lines

  1.  
  2. ;----------------------------
  3.  
  4.  
  5. ;try to figure out a place where the user usually installs his games
  6. (if (exists "Games:" (noreq) )
  7.     (set @default-dest "Games:")
  8.     (if (exists "SYS:Games" (noreq) )
  9.         (set @default-dest "SYS:Games")
  10.         (if (exists "Work:Games" (noreq) )
  11.             (set @default-dest "Work:Games")
  12.             (if (exists "JEUX:" (noreq) )
  13.                (set @default-dest "JEUX:")
  14.                (set @default-dest "SYS:")
  15.             )
  16.         )
  17.     )
  18. )
  19.  
  20.  
  21. (set default-dest
  22. (askdir
  23.     (prompt ("Where should %s installed ?\nA drawer \"%s\" will automatically created." @app-name @app-name))
  24.     (help @askdir-help)
  25.     (default @default-dest)
  26.     (disk)
  27. )
  28. )
  29.  
  30. (set #dest (tackon default-dest @app-name))
  31.  
  32. (set #CI_unit
  33.     (askchoice
  34.         (prompt "From which disk unit do you want\nto install the game")
  35.         (help    @askoptions-help)
  36.         (choices
  37.            "DF0:"
  38.            "DF1:"
  39.            "DF2:"
  40.            "DF3:"
  41.         )
  42.     )
  43. )
  44.  
  45. (set #CI_drive ("DF%ld:" #CI_unit))
  46.  
  47.  
  48.  
  49. (makedir #dest
  50.     (help @makedir-help)
  51.     (infos)
  52. )
  53.  
  54. ;----------------------------
  55.  
  56. (copyfiles
  57.     (help @copyfiles-help)
  58.     (source "ab2aga_hd")
  59.     (dest #dest)
  60. )
  61. (copyfiles
  62.     (help @copyfiles-help)
  63.     (source "ab2aga_hd.info")
  64.     (dest #dest)
  65. )
  66.  
  67. (copyfiles
  68.     (help @copyfiles-help)
  69.     (source "ab2aga_hd.readme.info")
  70.     (dest #dest)
  71. )
  72.  
  73. (copyfiles
  74.     (help @copyfiles-help)
  75.     (source "ab2aga_hd.readme")
  76.     (dest #dest)
  77. )
  78.  
  79. (message ("\nInsert %s disk 1 into drive %s !" @app-name #CI_drive))
  80.     (if
  81.         (= 0 (run ("rob2file %ld \"%s/AB2AGA.d1\" 2 159 123111 OFFSET >con:///1000//CLOSE/WAIT" #CI_unit #dest )))
  82.         ("")
  83.         (abort "\"rob2file\" must be in your PATH !")
  84.     )
  85.  
  86. (message ("\nInsert %s disk 2 into drive %s !" @app-name #CI_drive))
  87.     (if
  88.         (= 0 (run ("rob2file %ld \"%s/AB2AGA.d2\" 0 159 123222 >con:///1000//CLOSE/WAIT" #CI_unit #dest )))
  89.         ("")
  90.         (abort "\"rob2file\" must be in your PATH !")
  91.     )
  92.  
  93. (message ("\nInsert %s disk 3 into drive %s !" @app-name #CI_drive))
  94.     (if
  95.         (= 0 (run ("rob2file %ld \"%s/AB2AGA.d3\" 0 159 123333 >con:///1000//CLOSE/WAIT" #CI_unit #dest )))
  96.         ("")
  97.         (abort "\"rob2file\" must be in your PATH !")
  98.     )
  99.  
  100.  
  101. (exit)
  102.  
  103.